home *** CD-ROM | disk | FTP | other *** search
- import java.awt.Canvas;
- import java.awt.Component;
- import java.awt.Graphics;
- import java.awt.Rectangle;
-
- class zmazecan extends Canvas {
- private boolean invalidated;
- public zmaze3d zmaze3d;
- // $FF: renamed from: p zmazescr
- public zmazescr field_0;
- public int previousHeight;
- public int previousWidth;
- public Rectangle rectangle;
- public boolean resize;
-
- zmazecan(zmaze3d var1) {
- this.zmaze3d = var1;
- this.invalidated = false;
- this.previousWidth = 0;
- this.previousHeight = 0;
- this.field_0 = new zmazescr(this);
- this.field_0.start();
- }
-
- public void paint(Graphics var1) {
- if (!this.invalidated) {
- this.invalidated = true;
- ((Component)this).hide();
- ((Component)this).show();
- } else {
- this.invalidated = false;
- this.rectangle = ((Component)this).bounds();
- if (this.previousWidth == this.rectangle.width && this.previousHeight == this.rectangle.height) {
- this.resize = false;
- } else {
- if (this.zmaze3d.hexagonalRooms) {
- this.zmaze3d.message.setText("Verwenden Sie Home, Up, PgUp, Ende, Dn Pfeil, oder PgDn zum Spielen.");
- } else {
- this.zmaze3d.message.setText("Verwenden Sie die Pfeiltasten zum Spielen.");
- }
-
- this.zmaze3d.solutionDisplayed = false;
- this.resize = true;
- this.previousWidth = this.rectangle.width;
- this.previousHeight = this.rectangle.height;
- }
-
- this.field_0.restart = true;
- }
- }
- }
-